#define _CRT_SECURE_NO_WARNINGS


#include"circularQueue.h"

void test1()
{
	MyCircularQueue* queue = myCircularQueueCreate(7);

	myCircularQueueEnQueue(queue, 1);
	myCircularQueueEnQueue(queue, 2);
	myCircularQueueEnQueue(queue, 3);
	myCircularQueueEnQueue(queue, 4);
	myCircularQueueEnQueue(queue, 5);

	printf("%d\n", myCircularQueueFront(queue));
	myCircularQueueDeQueue(queue);
	printf("%d\n", myCircularQueueFront(queue));
	myCircularQueueDeQueue(queue);
	printf("%d\n", myCircularQueueFront(queue));
	myCircularQueueDeQueue(queue);

	printf("%d\n", myCircularQueueFront(queue));

	myCircularQueueFree(queue);
}

int main()
{
	test1();

	return 0;
}